/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
import { join } from 'path'

import HtmlWebpackPlugin from 'html-webpack-plugin'

import { rootDir } from '../utils/env'

const config = {
    filename: 'index.html',
    inject: true,
    template: join(rootDir, './src/index.html')
}

export const htmlWebpackPlugin = new HtmlWebpackPlugin(config)
